a tool for shared writing and social publishing
at update/reader 27 lines 749 B view raw
1import { getBasePublicationURL } from "app/lish/createPub/getPublicationURL"; 2import { ActionButton } from "components/ActionBar/ActionButton"; 3import { GoBackSmall } from "components/Icons/GoBackSmall"; 4import { SpeedyLink } from "components/SpeedyLink"; 5import { Json } from "supabase/database.types"; 6 7export const BackToPubButton = (props: { 8 publication: { 9 identity_did: string; 10 indexed_at: string; 11 name: string; 12 record: Json; 13 uri: string; 14 }; 15}) => { 16 return ( 17 <SpeedyLink 18 href={`${getBasePublicationURL(props.publication)}/dashboard`} 19 className="hover:no-underline!" 20 > 21 <ActionButton 22 icon={<GoBackSmall className="shrink-0" />} 23 label="To Pub" 24 /> 25 </SpeedyLink> 26 ); 27};